package com.aspose.cells;

class zbtl extends zbz {
   zbtl(int var1) {
      this.c(4126);
      this.b = var1;
      this.b(30);
      this.c = new byte[30];
      this.c[26] = 77;
      this.c[24] = 35;
      this.c[0] = 1;
      this.c[2] = 1;
      this.c[3] = 1;
   }

   void a(Axis var1) {
      switch(var1.getMajorTickMark()) {
      case 0:
         this.c[0] = 3;
         break;
      case 1:
         this.c[0] = 1;
         break;
      case 2:
         this.c[0] = 0;
         break;
      case 3:
         this.c[0] = 2;
      }

      switch(var1.getMinorTickMark()) {
      case 0:
         this.c[1] = 3;
         break;
      case 1:
         this.c[1] = 1;
         break;
      case 2:
         this.c[1] = 0;
         break;
      case 3:
         this.c[1] = 2;
      }

      switch(var1.getTickLabelPosition()) {
      case 0:
         this.c[2] = 2;
         break;
      case 1:
         this.c[2] = 1;
         break;
      case 2:
         this.c[2] = 3;
         break;
      case 3:
         this.c[2] = 0;
      }

      TickLabels var2 = var1.k();
      if (var2 != null) {
         Font var3 = var2.a();
         if (var3 != null && var3.b() >= 0 && var3.b() != 32767 && var3.b() != 32759 && !com.aspose.cells.a.c.zh.a(var3.getColor())) {
            System.arraycopy(com.aspose.cells.b.a.zc.a(var3.b()), 0, this.c, 26, 2);
            this.c[3] = 1;
            this.c[4] = com.aspose.cells.a.c.zh.b(var3.getColor());
            this.c[5] = com.aspose.cells.a.c.zh.c(var3.getColor());
            this.c[6] = com.aspose.cells.a.c.zh.d(var3.getColor());
            this.c[24] = (byte)(this.c[24] & 254);
         }

         if (var2.getRotationAngle() >= -90 && var2.getRotationAngle() <= 90 || var2.getRotationAngle() == 255) {
            if (var2.e()) {
               this.c[28] = -1;
            } else if (var2.getRotationAngle() < 0) {
               this.c[28] = (byte)(90 - var2.getRotationAngle());
            } else {
               this.c[28] = (byte)var2.getRotationAngle();
            }
         }

         if (var2.e()) {
            this.c[24] = (byte)(this.c[24] | 4);
            this.c[24] = (byte)(this.c[24] & 223);
         } else {
            switch(var2.getRotationAngle()) {
            case -90:
               this.c[24] = (byte)(this.c[24] | 12);
               this.c[24] = (byte)(this.c[24] & 223);
               break;
            case 0:
               this.c[24] = (byte)(this.c[24] & 243);
               if (!var2.c()) {
                  this.c[24] = (byte)(this.c[24] & 223);
               }
               break;
            case 90:
               this.c[24] = (byte)(this.c[24] | 8);
               this.c[24] = (byte)(this.c[24] & 223);
               break;
            case 255:
               this.c[24] = (byte)(this.c[24] | 4);
               this.c[24] = (byte)(this.c[24] & 223);
               break;
            default:
               this.c[24] = (byte)(this.c[24] & 243);
               this.c[24] = (byte)(this.c[24] & 223);
            }
         }

         switch(var2.getTextDirection()) {
         case 1:
            this.c[25] = (byte)(this.c[25] | 64);
            break;
         case 2:
            this.c[25] |= -128;
         }

         switch(var2.getBackgroundMode()) {
         case 1:
            this.c[24] = (byte)(this.c[24] & 253);
            this.c[3] = 2;
            break;
         case 2:
            this.c[24] = (byte)(this.c[24] & 253);
            this.c[3] = 1;
         }
      }

   }
}
